package com.cy.pj.common.service;

import com.cy.pj.common.cache.Cache;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * @author Cx
 * @stage secondStageOfWeb
 * @creat 2020-11-02 10:26
 */
@Service
public class CacheService {

    private Cache cache;

    @Autowired
    public CacheService(@Qualifier("weakCache") Cache cache) {
        this.cache = cache;
        System.out.println("cache = " + cache);
    }

}
